// Program to test the functionality of the class 'contract'
// File: ch5tst1.cpp
#include <iostream.h>
#include "contract.h"
void main()
{ Contract contract1;
Contract contract2;
Contract contract3;
Contract contract4;
Contract contract5;
// Initializing contract1
contract1.ChangeSquareFootage(1000);
contract1.ChangeNumDesks(3);
contract1.ChangeNumDays(5);
// Initializing contract2
contract2.ChangeSquareFootage(500);
contract2.ChangeNumDesks(10);
contract2.ChangeNumDays(3);
// Initializing contract3
contract3.ChangeSquareFootage(200);
contract3.ChangeNumDesks(1);
contract3.ChangeNumDays(4);
// Initializing contract4
contract4.ChangeSquareFootage(200);
contract4.ChangeNumDesks(20
contract4.ChangeNumDays(5);
// Initializing contract5
contract5.ChangeSquareFootage(300);
contract5.ChangeNumDesks(2);
contract5.ChangeNumDays(2);
// Code to test the declarations and initializations
int sqFootage;
int numDesks;
int numDays;
double charge;
sqFootage = contract1.ProvideSquareFootage();
cout << "The square footage of contract1 is: " << sqFootage << endl;
numDesks = contract1.ProvideNumberOfDesks();
cout << "The number of desks of contract1 is: " << numDesks << endl;
numDays= contract1.ProvideNumberOfDays();
cout << "The number of days of contract1 is: " << numDays << endl;
charge = contract1.ProvidePerWeekCharge();
cout << "The per week charge for contract 1 is: " << charge << endl;
sqFootage = contract2.ProvideSquareFootage();
cout << "The square footage of contract2 is: " << sqFootage << endl;
numDesks = contract2.ProvideNumberOfDesks();
cout << "The number of desks of contract2 is: " << numDesks << endl;
numDays= contract2.ProvideNumberOfDays();
cout << "The number of days of contract2 is: " << numDays << endl;
charge = contract2.ProvidePerWeekCharge();
cout << "The per week charge for contract 2 is: " << charge << endl;
sqFootage = contract3.ProvideSquareFootage();
cout << "The square footage of contract3 is: " << sqFootage << endl;
numDesks = contract3.ProvideNumberOfDesks();
cout << "The number of desks of contract3 is: " << numDesks << endl;
numDays= contract3.ProvideNumberOfDays();
cout << "The number of days of contract3 is: " << numDays << endl;
charge = contract3.ProvidePerWeekCharge();
cout << "The per week charge for contract 3 is: " << charge << endl;
sqFootage = contract4.ProvideSquareFootage();
cout << "The square footage of contract4 is: " << sqFootage << endl;
numDesks = contract4.ProvideNumberOfDesks();
cout << "The number of desks of contract4 is: " << numDesks << endl;
numDays= contract4.ProvideNumberOfDays();
cout << "The number of days of contract4 is: " << numDays << endl;
charge = contract4.ProvidePerWeekCharge();
cout << "The per week charge for contract 4 is: " << charge << endl;
sqFootage = contract5.ProvideSquareFootage();
cout << "The square footage of contract5 is: " << sqFootage << endl;
numDesks = contract5.ProvideNumberOfDesks();
cout << "The number of desks of contract5 is: " << numDesks << endl;
numDays= contract5.ProvideNumberOfDays();
cout << "The number of days of contract5 is: " << numDays << endl;
charge = contract5.ProvidePerWeekCharge();
cout << "The per week charge for contract 5 is: " << charge << endl;
}